home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 114 / macaddict114.cdr / Software / Internet & Communication / IOXWebcamX-1.1.dmg / IOXWebcamX-1.1.pkg / Contents / Resources / InstallationCheck < prev    next >
Encoding:
Text File  |  2005-05-05  |  1.6 KB  |  50 lines

  1. #!/bin/sh +x
  2. #
  3. # Argument 1 (the only argument to InstallationCheck) is the full name of the package
  4. # The IOXperts installation check goes into the package becuase the installation gets
  5. # confused about the 
  6. #
  7. # NOTE - this check works only with the current boot volume, although it is called for
  8. #        each and every volume. (TODO-try setting install only on boot volume flag in .info file)
  9. #        There probably isn't any way to use the volume argument "$3" to apply this to
  10. #        the selected installation volume because of the above.  There is no script that
  11. #         is called after the volume selection but before the installer chooses install/upgrade.
  12. #         Also, the installer should only install the driver on the boot volume because it
  13. #         needs to do prebinding which I suspect will not work correctly if you install the
  14. #         driver on a different boot volume.
  15. #
  16.  
  17. P="$1"
  18. PACKAGE_NAME=`/usr/bin/basename "${P}"`
  19.  
  20. /bin/rm -rf "/Library/Receipts/${PACKAGE_NAME}"
  21.  
  22. # case sensitivity work around
  23. if [ "${PACKAGE_NAME}" == "Webcam.pkg" ]
  24. then
  25.     /bin/rm -rf "/Library/Receipts/WebCam.pkg"
  26. fi
  27.  
  28. exit 0
  29.  
  30. #
  31. # TODO - are there variants that cause problems?
  32. # special handling for Webcam vs WebCam
  33. #
  34.  
  35. #
  36. # Where the InstallationCheck.strings go.
  37. #
  38. #Test.pkg
  39. #    Contents
  40. #        Archive.bom
  41. #        Archive.pax.gz
  42. #        Info.plist
  43. #        Resources
  44. #            Description.plist
  45. #            InstallationCheck                -1-
  46. #            English.lproj                    -2-
  47. #                InstallationCheck.strings  -3-
  48. #            French.lproj                    -4-
  49. #                InstallationCheck.strings  -5-
  50. #